package com.blue.seata.business;

import io.seata.spring.annotation.datasource.EnableAutoDataSourceProxy;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**ni
 * @author liulei
 * @version 1.0
 */
@EnableDiscoveryClient
@SpringBootApplication
@EnableAutoDataSourceProxy
@EnableFeignClients(basePackages = {"com.blue.seata.order.api.remote","com.blue.seata.storage.api.remote"})
public class BusinessApplication {

    private static final Logger logger = LoggerFactory.getLogger(BusinessApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(BusinessApplication.class, args);
        logger.info("{} is started!", BusinessApplication.class.getSimpleName());
    }
}
